package com.wwc.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * 业务异常信息枚举类
 */
@ToString
@AllArgsConstructor
@Getter
public enum BusinessExceptionEnum{
	MEMBER_MOBILE_EXIST("手机号已被注册"),
	MEMBER_MOBILE_NOT_EXIST("请先获取短信验证码"),
	MEMBER_MOBILE_CODE_ERROR("短信验证码错误"),

	MODIFIED_DATA_DOES_NOT_EXIST("修改的数据不存在"),
	MODIFIED_DELETE_DATA_DOES_NOT_EXIST("删除的数据不存在"),

	BUSINESS_STATION_NAME_UNIQUE_ERROR("车站已存在"),
	BUSINESS_TRAIN_CODE_UNIQUE_ERROR("车次编号已存在"),
	BUSINESS_TRAIN_STATION_INDEX_UNIQUE_ERROR("同车次站序已存在"),
	BUSINESS_TRAIN_STATION_NAME_UNIQUE_ERROR("同车次站名已存在"),
	BUSINESS_TRAIN_CARRIAGE_INDEX_UNIQUE_ERROR("同车次厢号已存在");

	private final String desc;
}
